package com.dgz.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandUpdateInfoParam implements Serializable {
    @ApiModelProperty(value = "品牌名称",required = true,example = "XX品牌")
    @NotNull(message = "修改失败！品牌名不能为空！")
    private String name;
    @ApiModelProperty(value = "品牌拼音",required = true,example = "XXPinPai")
    @NotNull(message = "修改失败！品牌拼音不能为空！")
    private String pinyin;
    @ApiModelProperty(value = "品牌图标",example = "xxxxx.img")
    private String logo;
    @ApiModelProperty(value= "品牌描述",example = "XXXX品牌描述")
    private String description;
    @ApiModelProperty(value = "品牌关键词",example = "关键词1,关键词2")
    private String keywords;
    @NotNull(message = "修改失败！品牌序号不能为空！")
    @Range(max=99,message = "修改失败！品牌序号必须为0-99之间的数字！")
    @ApiModelProperty(value="品牌序号",required = true,example = "97")
    private Integer sort;
}
